package day06;

/**
 * @author Smartloe
 * @create 2021-04-19 12:23
 */
public class ArrayTest1 {
    public static void main(String[] args) {
        //5.数组元素的默认初始化值
        //>
        int[] arr = new int[4];
        for (int i = 0; i < arr.length; i++){
            System.out.println(arr[i]);
        }
        System.out.println("**************");

        short[] arr1 = new short[4];
        for (int i = 0; i < arr1.length; i++){
            System.out.println(arr1[i]);
        }
        System.out.println("**************");

        float[] arr2 = new float[4];
        for (int i = 0; i < arr2.length; i++){
            System.out.println(arr2[i]);
        }
        System.out.println("**************");

        double[] arr3 = new double[4];
        for (int i = 0; i < arr3.length; i++){
            System.out.println(arr3[i]);
        }
        System.out.println("**************");

        char[] arr4 = new char[4];
        for (int i = 0; i < arr4.length; i++){
            System.out.println(arr4[i]);
        }
        System.out.println("**************");

        boolean[] arr5 = new boolean[4];
        for (int i = 0; i < arr5.length; i++){
            System.out.println(arr5[i]);
        }
        System.out.println("**************");

        String[] arr6 = new String[4];
        for (int i = 0; i < arr6.length; i++){
            System.out.println(arr6[i]);
        }
        System.out.println("**************");
    }
}
